package com.ming.transaction.exception;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author: Chenming
 * @date 2023/5/3 23:07
 */

@Data
@AllArgsConstructor
public class ServiceException extends RuntimeException{

    private long code;

    // 异常时调用方法
    public ServiceException(long code,String msg){
        super(msg);
        this.code = code;
    }
}
